﻿using M.ShopMachine.Domain;
using M.ShopMachine.Domain.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace M.ShopMachine.Repository.Interface
{
    public interface IWorkshopRepository :IRepository<Workshop>
    {
        Task<Workshop> GetFormWorkshopAsync(int id);
        Task<int> AddWorkshopAsync(Workshop workshop);
        Task<List<Workshop>> GetTableWorkShopAsync(string? Number,string? Name,bool? State);
        Task<int> UpdWorkShopAsync(Workshop workshop);
        Task<int> UpdStateAsync(int id, bool State);
    }
}
